class Product < ActiveRecord::Base
  attr_accessible :category_id, :name, :picture, :price
  validates_presence_of :category_id, :name
  has_many :comments
  belongs_to :category
end
